package com.fyi.service.impl;

import com.fyi.entity.Article;
import com.fyi.entity.ArticleType;
import com.fyi.mapper.ArticleTypeMapper;
import com.fyi.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("articleType")
public class ArticleTypeServiceImpl implements ArticleTypeService {

    @Autowired
    private ArticleTypeMapper articleTypeMapper;


    public List<ArticleType> selectAllType() {
        return articleTypeMapper.selectAllType();
    }

    public ArticleType selectByTypeId(Integer id) {
        return articleTypeMapper.selectByTypeId(id);
    }
}
